package com.zbkj.admin.controller;

import cn.hutool.core.util.ObjUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.zbkj.admin.model.admin.SystemAdmin;
import com.zbkj.admin.pojo.*;
import com.zbkj.admin.service.*;
import com.zbkj.admin.util.SecurityUtil;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import net.dreamlu.mica.core.result.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.math.BigDecimal;
import java.net.URL;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Base64;
import java.util.List;

/// 测试订单发货
@Slf4j
@RestController
@RequestMapping("api/admin/merchant/wxa/sec/order")
@Tag(name = "测试订单发货")
public class TestController {

    @Autowired
    WechatWxaSecOrderInfoService wechatWxaSecOrderInfoService;

    @GetMapping("/uploadShippingInfo/{orderNo}")
    @Operation(summary = "发货信息录入")
    public void uploadShippingInfo(@PathVariable("orderNo") String orderNo) {
        wechatWxaSecOrderInfoService.uploadShippingInfo(orderNo);
    }

}
